package fun.zerone.service.user.biz.user;

import fun.zerone.service.user.dao.account.UserDao;
import fun.zerone.service.user.entity.account.User;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by XQL on 2021/4/13.
 */
@Service
@DubboService
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public String find(Integer id) {
        List<User> userList = userDao.findById(id);
        return userList.toString();
    }

}
